<script>
/* jQuery->validation */
$(document).ready(function(){
    $("#TypecamposEditForm").validate();
    });
</script>

<?php echo $this->Form->create('Typecampos', array('url' => array('controller' => 'typecampos', 'action' => 'edit'),'inputDefaults' => array('label' => false, 'div' => false))); ?>

    <div class="grid_3 titulo_campo">Nombre</div>
    <div class="grid_5">
        <?php echo $this->Form->input('Typecampo.id', array('value'=>$this->data['Typecampo']['id'], 'type' => 'hidden'));?>
        <?php echo $this->Form->input('Typecampo.name', array('value'=>$this->data['Typecampo']['name'], 'type' => 'text', 'class'=>'required'));?>
    </div>
    <div class="clear"></div>

    <div class="grid_3 titulo_campo">Regla Validacion</div>
    <div class="grid_5">
        <?php echo $this->Form->input('Typecampo.validacion', array('value'=>$this->data['Typecampo']['validacion'], 'type' => 'text'));?>
    </div>
    <div class="clear"></div>
	
    <div class="grid_3 titulo_campo">Muestra Calendario de fecha?</div>
    <div class="grid_5">
        <?php $es_fecha['0'] = 'No';  $es_fecha['1'] = 'Si'; ?>
        <?php echo $this->Form->select('Typecampo.es_fecha', $es_fecha, null, array('escape' => false, 'empty' => false, 'class'=>'select')); ?>
        
    </div>
    <div class="clear"></div>
	
    <div class="grid_6 save">
        <?php echo $this->Form->input('Typecampo.save_apply', array('value'=>'save', 'type' => 'hidden'));?>
        <?php
            $options = array('label' => 'Guardar los cambios','name' => 'save');
            echo $this->Form->end($options); 
        ?>
    </div>

</form>
<div class="clear"></div>
